package client

import "strings"

type Config struct {
	Bridge   string
	Secret   string
	Bindings []Binding
}

type Binding struct {
	PortalPort uint16
	LocalPort  uint16
}

func (c *Config) BridgeHost() string {
	ss := strings.Split(c.Bridge, ":")
	if len(ss) > 0 {
		return ss[0]
	}

	return ""
}
